package com.yidu.drug.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.yidu.drug.common.Page;
import com.yidu.drug.common.Tools;

public class FinancialRecordModel implements Serializable {
	/**
	 * 财务记录ID
	 */
    private String frId;

    /**
     * 财务ID
     */
    private String fsId;

    /**
     * 业务ID(存放采购订单ID或销售订单ID)
     */
    private String pwId;

    /**
     * 财务记录名称(存放收入或支出)
     */
    private String frName;

    /**
     * 财务记录总金额
     */
    private BigDecimal frSumprice;

    /**
     * 财务记录进出帐
     */
    private BigDecimal frPrice;

    /**
     * 财务记录时间
     */
    private Date frTime;

    /**
     * 财务记录备注
     */
    private String frRemark;

    /**
     * 是否有效
     */
    private String isva;

    /**
     * 排序
     */
    private Integer sort;
    
    /**
     * 财务记录类型(1是分店采购，2是分店销售，3是分店销售批发，4是总店采购，5是总店销售)
     */
    private Integer frType;
    
    /**
     * 分页对象
     */
    private Page pages;
    
    /**
     * 当前页数
     */
    private String page;
    
    /**
     * 每页显示行数
     */
    private String limit;
    
    /**
     * 时间(用于转换日期格式用的)
     */
    private String frTimes;
    
    
    /**
     * 最小价格
     */
    private String frSumPriceMin;
    
    /**
     * 最大价格
     */
    private String frSumPriceMax;
    
    /**
     * 最小时间
     */
    private String frTimeMin;
    
    /**
     * 最大时间
     */
    private String frTimeMax;
    
    private static final long serialVersionUID = 1L;

    public String getFrId() {
        return frId;
    }

    public void setFrId(String frId) {
        this.frId = frId;
    }

    public String getFsId() {
        return fsId;
    }

    public void setFsId(String fsId) {
        this.fsId = fsId;
    }

    public String getPwId() {
        return pwId;
    }

    public void setPwId(String pwId) {
        this.pwId = pwId;
    }

    public String getFrName() {
        return frName;
    }

    public void setFrName(String frName) {
        this.frName = frName;
    }

    public BigDecimal getFrSumprice() {
        return frSumprice;
    }

    public void setFrSumprice(BigDecimal frSumprice) {
        this.frSumprice = frSumprice;
    }

    public BigDecimal getFrPrice() {
        return frPrice;
    }

    public void setFrPrice(BigDecimal frPrice) {
        this.frPrice = frPrice;
    }

    public Date getFrTime() {
        return frTime;
    }

    public void setFrTime(Date frTime) {
        this.frTime = frTime;
    }

    public String getFrRemark() {
        return frRemark;
    }

    public void setFrRemark(String frRemark) {
        this.frRemark = frRemark;
    }

    public String getIsva() {
        return isva;
    }

    public void setIsva(String isva) {
        this.isva = isva;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

	public Page getPages() {
		return pages;
	}

	public String getPage() {
		return page;
	}

	public String getLimit() {
		return limit;
	}

	public void setPages(Page pages) {
		this.pages = pages;
	}

	public void setPage(String page) {
		this.page = page;
	}

	public void setLimit(String limit) {
		this.limit = limit;
	}

	public String getFrTimes() {
		frTimes = Tools.getTimeStr(frTime);
		return frTimes;
	}

	public void setFrTimes(String frTimes) {
		this.frTimes = frTimes;
	}

	public Integer getFrType() {
		return frType;
	}

	public void setFrType(Integer frType) {
		this.frType = frType;
	}

	public String getFrSumPriceMin() {
		return frSumPriceMin;
	}

	public String getFrSumPriceMax() {
		return frSumPriceMax;
	}

	public String getFrTimeMin() {
		return frTimeMin;
	}

	public String getFrTimeMax() {
		return frTimeMax;
	}

	public void setFrSumPriceMin(String frSumPriceMin) {
		this.frSumPriceMin = frSumPriceMin;
	}

	public void setFrSumPriceMax(String frSumPriceMax) {
		this.frSumPriceMax = frSumPriceMax;
	}

	public void setFrTimeMin(String frTimeMin) {
		this.frTimeMin = frTimeMin;
	}

	public void setFrTimeMax(String frTimeMax) {
		this.frTimeMax = frTimeMax;
	}

}